<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">&times;</button>
    <p class="modal-title panel-title-size">为用户添加角色</p>
</div>
<div class="modal-body panel-body">
    <form class="form-horizontal form-validation" name="updateUserForm">
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">用户Id：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" readonly="readonly" name="userId" class="form-control" ng-model="updateData.userId" validator="required">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">用户名：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" readonly="readonly" name="username" class="form-control" ng-model="updateData.userName" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        
       <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">角色：</label>
                <div class="radio">
                    <label class="i-checks" ng-repeat="row in roles">
                        <input type="radio" ng-value="row.roleId" ng-change="changeRole()" ng-model="param.role_id" value="{{row.roleId}}" ng-checked="myroles[0].roleId==row.roleId" name="roleName">
                        <!-- <input type="radio" ng-model="row.roleId" ng-checked="isSelected(row.roleId)" id="{{row.roleId}}" name="roleName"> -->
                        <i></i>
                         {{row.roleName}} &nbsp&nbsp&nbsp&nbsp
                    </label>
                </div>
            </div>
        </div>
    </form>
</div>
<div class=""  ng-show="visible">
                  <div class="dataTables_wrapper form-inline">
                        <div class="row">
                            <div class="col-sm-12" style="margin-top: -10px;">
                                <table class="table table-striped b-light m-b-xxs">
                                    <thead class="table-header">
                                    <tr>
                                        <th width="10%" class="font-15 text-center">项目编号</th>
                                        <th width="10%" class="font-15 text-center">项目名称</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="table-content" ng-repeat="row in projectList" ng-if="!isImageData">
                                        <td width="10%" class="font-15 text-center text-overflow" style="max-width:162px;" title="{{row.projectId}}"  ng-bind="row.projectId"></td>
                                        <td width="10%" class="font-15 text-center text-overflow" style="max-width:162px;" title="{{row.projectName}}" ng-bind="row.projectName"></td>
                                    </tr>
                                    <tr ng-if="isImageData">
                                        <td class="td-nodata" colspan="6">暂无数据</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <div class="clearfix">
                                    <div class="col-sm-6" style="padding: 7px 15px;">
                                        <div class="paginationTables_info">总共<span ng-bind="totalCount"></span>条, 每页<span ng-bind="param.rows"></span>条</div>
                                    </div>
                                    <div class="col-sm-6 text-right">
                                        <pagination style="" boundary-links="true" total-items="totalCount" items-per-page="param.rows" max-size="10" ng-model="param.page" ng-change="getData(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
                                    </div>
                                </div>
           			 		</div>
            		</div>
        	 </div>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" validation-submit="updateUserForm"  ng-disabled="updateUserForm.$invalid" ng-click="ok()">确认</button>
    <button class="btn btn-default" ng-click="cancel()">取消</button>
</div>
